Generalized mean spherical approximations for polar and ionic fluids