Twistable electronics with dynamically rotatable heterostructures