LoRa Technology Demystified: from Link Behavior to Cell Capacity