Boundary conditions at spatial infinity from a Hamiltonian point of view