Measuring the electron temperatures of coronal mass ejections with future space-based multi-channel coronagraphs: A numerical test