Development and validation of an insole based wearable system for gait and activity monitoring