Polymeric membranes conditioning for sensors applications: mechanism and influence on analytes detection