Inelastic neutron-scattering study of the proton dynamics in carbons and coals