library that implements boundary conditions for arbitrarily shaped laser beams in electromagnetic codes