An inertial motion capture framework for constructing body sensor networks