Energetics and electronic structure of nanoscale rotors consisting of triptycene and hydrocarbon molecules