Bandstructure of planar photonic crystal with a square lattice