LoRa Technology Demystified: from Link Behavior to Cell-Level Performance