Mixture which can be thermally hardened and hardened by actinic radiation and use thereof