RHEED wave functions and the effect of reconstruction on secondary electron emission from the Si(100) surface