Improving the Orientation Estimation in a Packet Loss-affected Wireless Sensor Network for Tracking Human Motion