General method for describing and extrapolating monotonic transients and its application to respiratory mechanics