A smartphone-based solution to monitor daily physical activity in a care home