High-order Integral Equations for Electromagnetic Problems in Layered Media with Applications in Biology and Solar Cells