Frame Loss Characterisation and Data Erasure Coding for LoRaWAN