Smart shoe gait analysis and diagnosis: designing and prototyping of hardware and software