Beyond linear response: Line shapes for coupled spins or oscillators via direct calculation of dissipated power