Shape and size variations during nanopatterning of photoresist using near-field scanning optical microscope