Pro re nata prescribing and administration for neuropsychiatric symptoms and pain in long-term care residents with dementia and memory problems: a cross-sectional study