Hamiltonian formulation of d = 10 supergravity theories