A Generalized Formulation for the Contact Between Elastic Spheres: Applicability to Both Wet and Dry Conditions