Locality-based network creation games