SMS: Factorization methods for photonics and rough surfaces