Millisecond time scale atmospheric light pulses associated with solar and magnetospheric activity