Fundamentals of Astrometry