Resonant tunneling of electrons interacting with phonons