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