Optical Manipulation of Spin Coherence in Nanostructures