Effect of In segregation on the structural and optical properties of ultrathin InAs films in GaAs