Activation of cosmic dust by cosmic-ray particles