Boundary Integral Equation Methods for Simulation and Design of Photonic Devices