WLAN Positioning Systems: Principles and Applications in Location-Based Services