Excitation of O(1D) atoms in aurorae and emission of the [OI]6300-Å line