Performance of Bluetooth technologies and their applications to location sensing