Powder diffraction for solid state reaction studies