Twisted 2D electronic and photonic materials and devices