Smart Probabilistic Fingerprinting for Indoor Localization over Fog Computing Platforms