Phase transitions and crystal-field and exchange interactions in TbFe3(BO3)4 as seen via optical spectroscopy