Rafael Nadal pulls out of US Open with foot injury