Gap-edge asymptotics of defect modes in 2D photonic crystals