High-performance flexible nanoscale transistors based on transition metal dichalcogenides