Computation of the scattering properties of nonspherical ice crystals