Smoothing of X-ray diffraction data and K (alpha)2 elimination using penalized likelihood and the composite link model