The Hanle effect and electron spin polarization in InAs/GaAs quantum dots up to room temperature