Solar neutrino limit on axions and keV-mass bosons