Self-reference method for measuring the transmission matrices of scattering media.