Homoclinic bifurcations in thermo-optical bistability with localized absorption