Energy-dependent Hamiltonians and their pseudo-Hermitian interpretation