Hamiltonian Tomography of Photonic Lattices