Identification of Near-Field and Far-Field Using Confocal Microscopy Setup for Optical Sensing Applications