Indoor Positioning with Smartphones:The State-of-the-art and the Challenges