Remanent magnetization of spin glasses