Performance Analysis and Resource Allocation for a Relaying LoRa System Considering Random Nodal Distances