Scattering media characterization with phase-only wavefront modulation