Proximity Classification for Mobile Devices Using Wi-Fi Environment Similarity