More accurate planet radii and flattening of the Earth