Evaluation of potential prescribing errors in patients with polypharmacy: a method to improve medication safety in ambulatory care