Image formation properties and inverse imaging problem in aperture based scanning near field optical microscopy