Nursing-home residents and their drug use: a comparison between mentally intact and mentally impaired residents