Polaritonic Tamm states induced by cavity photons