Design and Implementation of a Smart Home in a Box to Monitor the Wellbeing of Residents With Dementia in Care Homes