Energy spectrum and elemental composition of cosmic rays in the PeV region