Effects of two-dimensional electron gas on the optical properties of InAs/GaAs quantum dots in modulation-doped heterostructures