Near-field characterization of planar photonic-crystal-waveguide structures