Access point selection for indoor positioning in a WLAN environment using an algorithm based on RSSI and Dilution of Precision