Gravar-mail: Robust Step Counting for Inertial Navigation with Mobile Phones