Kidney function before and after acute kidney injury: a nationwide population-based cohort study