Enhancement of ZnO-based flexible nano generators via a sol–gel technique for sensing and energy harvesting applications