Crystal powder statistics. IV. Calculation of the line profile using the sampling‐line method