Stellar accelerations and the galactic gravitational field