Physico-chemical elucidation of the mechanism involved in optical lithography: Micro-fabrication of 2D and 3D platforms