Observation of Ramsey fringes in nonlinear Faraday rotation