A dual-use probe for nano-metric photoelectric characterization using a confined light field generated by photonic crystals in the cantilever