Ionization effects from cosmic sources of x-rays in the lower atmosphere