Accelerated-gradient-based generalized Levenberg--Marquardt method with oracle complexity bound and local quadratic convergence