Model independent pre-processing of X-ray powder diffraction profiles