Wireless 6D inertial measurement platform for ambulatory gait monitoring