Static charged fluid spheres in general relativity