Analytic Solutions for the Two-phase Navier-Stokes Equations with Surface Tension and Gravity