Trajectories of functional performance recovery after inpatient geriatric rehabilitation: an observational study