Driving Rotational Transitions in Molecules on a Chip