The energy spectrum of cosmic rays in the range from 1014 to 1018 eV