Optical orientation and spin relaxation of resident electrons in n-doped InAs/GaAs self-assembled quantum dots