Smar teg: An autonomous wireless sensor node for high accuracy accelerometer-based monitoring