Photonic crystal slabs in flexible organic light-emitting diodes