InfiR : Crafting Effective Small Language Models and Multimodal Small Language Models in Reasoning