Annie Jump Cannon, Astronomer