Massive photon and fermion mixing as manifestations of an extra discrete dimension in bilayer systems