A new method to calculate the characteristics of radiation and pair production under high energies and arbitrary angles of particle incidence relative to the crystal planes