The detection of coronal mass ejections in the interplanetary medium using scintillation observations