Coronal Mass Ejections and Their Environmental Effects