Rafael Nadal will return to No 1 in the world rankings after his semi-final opponent Tomas Berdych was forced to retire injured at the China Open.