Microarcsecond astrometry using the SKA