Optical initialization and dynamics of spin in a remotely doped quantum well