Calculation of the instrumental profile function for a powder diffraction beamline used in nanocrystalline material research