Text this: Joint channel training and passive beamforming design for intelligent reflecting surface-aided LoRa systems