Motion and audio analysis in mobile devices for remote monitoring of physical activities and user authentication