Starlight excitation of permitted lines in the Orion Nebula