Robust And Efficient Neural Inertial Localization And Complex Activity Recognition