A modified Shamanskii accelerated scheme via diagonal Jacobian approximation for nonlinear equations