Transmission line formulation for the full-wave analysis of two-dimensional dielectric photonic crystals