Resonant quasiconfined optical phonons in semiconductor superlattices