Numerical analysis of nonhomogenous media through photothermal deflection method