Wave equations with energy-dependent potentials