Magnetic Disturbance Detection for Smartphone-Based Indoor Positioning Systems With Unsupervised Learning