Functional recovery of patients with brain tumor or acute stroke after rehabilitation: A comparative study