Exact solution of Peters-Mathews equations for any orbital eccentricity