Robotic sample manipulation for stress and texture determination on neutron and synchrotron X-ray diffractometers