The discovery of cosmic rays