The excitation of the 557.7 nm line and Herzberg bands in the nightglow