Relativistic Theory of Celestial Reference Frames