Polaronic optical properties of transition metal oxides