A human body posture sensor for monitoring and diagnosing MSD risk factors