In situ monitoring of formation of InAs quantum dots and overgrowth by GaAs or AlAs