Scattering correction for three-photon microscopy