Self-powered flexible pressure sensors based on nanopatterned polymer films