Coexistence of large and small polarons and relative optical infrared properties in perovskitic materials