The Hamiltonian of the General Theory of Relativity with Electromagnetic Field