First-order nonparaxial scalar theory of surface and bulk scattering for high-quality optical coatings.