French, Spanish leaders welcome UK premier’s intention to rejoin EU