Impact of Cosmic Rays on Atmospheric Ion Chemistry and Spectral Transmission Features of TRAPPIST-1e