A dynamic control and measuring system for synchrotron X-ray rocking curves