Optical switching in metallic photonic crystal slabs with photoaddressable polymers