Entanglement Hamiltonians for non-critical quantum chains