Text this: Identification of near-field and far-field using confocal microscopy setup for optical sensing applications