From protoplanetary dust to asteroidal heating: a mineralogical study of the CO3 chondrites