Masses and radii for the three super-Earths orbiting GJ 9827, and implications for the composition of small exoplanets