Propagation characteristics of coronal mass ejections (CMEs) in the corona and interplanetary space