Band structure calculation of a photonic crystal slab