Effects of atmospheric electric fields on cosmic rays