Entanglement Hamiltonians in two-dimensional conformal field theory