Optical method for the determination of carrier density in modulation-doped quantum wells