The effects of atmospheric collisions on geomagnetically trapped electrons