SpaceX wins contract to launch NASA small astrophysics mission