A Certifably Correct Algorithm for Generalized Robot-World and Hand-Eye Calibration