Relativistic electron losses related to EMIC waves during CIR and CME storms