Microarcsecond Astrometry in Space: Relativistic Effects and Reduction of Observations