Fast Numerical Techniques in Computational Electromagnetics for Planar-stratified Media