R function to geolocate IP addresses using freegeoip.net