Bandstructure of photonic crystal with loss