Convergence analysis of finite element methods for singularly perturbed problems