Frame-scheduling for Input-queued Switches with Energy Reconfiguration Costs