Smart probabilistic fingerprinting for WiFi-based indoor positioning with mobile devices