An ambulatory system for physical activity monitoring in elderly