Functional Devices Based on Freestanding 2D Materials