Power-efficient calibration and reconfiguration for optical network-on-chip