Gamma-ray emission and neutrons from solar flares recorded by the SONG instrument in 2001–2004