On the Pin-and-Slot Device of the Antikythera Mechanism, with a New Application to the Superior Planets