Relativity in astrometry, Celestial mechanics and geodesy