Civil detentions of older adults under successive Scottish mental health legislation: a comparative analysis