Learned peak shape functions for powder diffraction data