The hydrogen emission spectrum of a shock wave in a stellar atmosphere