Propagation of electromagnetic waves in weakly anisotropic media: Theory and applications