Maximum stable length of nonisothermal liquid bridges