Heating and cooling attachments for x-ray powder diffractometry