Long-term cognitive and functional effects of potentially inappropriate medications in older women.