‘Earth’s carbon came from smash up with Mercury-like planet’