How appropriate is the use of rehabilitation facilities? Assessment by an evaluation tool based on the AEP protocol