High-energy radiation and pair production by Coulomb processes in particle-in-cell simulations