Photonic bandgap of two-dimensional dielectric crystals