Nonlinear atom interferometer surpasses classical precision limit