Reconstruction of the two-dimensional gravitational potential of galaxy clusters from X-ray and Sunyaev-Zel’dovich measurements