Text this: Approximate boundary conditions in electromagnetics