Hamiltonian-conserving discrete canonical equations based on variational difference quotients