Gravar-mail: Design and implementation of a wireless sensor network applied to motion capture