Photonic bandgap structure based accelerating cell