Generalized Lie symmetries and complete integrability of certain nonlinear Hamiltonian systems with three degrees of freedom