Near and far infrared absorption by small polarons in semiconducting NiO and CoO