Photon and electron response of silicon-diode neutron detectors