Solar-flare neutrons and gamma rays