Gravar-mail: A Zero Velocity Detection Algorithm Using Inertial Sensors for Pedestrian Navigation Systems