Motion Recognition for Smart Sports Based on Wearable Inertial Sensors