Electron-photon cascade calculations and neutron yields from electrons in thick targets