Linear analysis of the gravitational beam–plasma instability