Measurements of neutron capture effects on Cd, Sm and Gd in lunar samples with implications for the neutron energy spectrum