The magnetic field of solar prominences