A solid-state ambulatory physical activity monitor and its application to measuring daily activity of the elderly