The structure and evolution of interplanetary coronal mass ejections observed by MESSENGER and Venus Express