Estimating the impedance of a synchrotron component from beam-induced power loss