Optical Probing Technique for Inhomogeneous Superconducting Films