X-ray Coulomb explosion imaging reveals role of molecular structure in internal conversion