X-ray powder diffractometer for in situ structural studies in magnetic fields from 0 to 35 kOe between 2.2 and 315 K