A finite element method for a unidimensional single-phase nonlinear free boundary problem in groundwater flow