Capillary instabilities in thin films: A model of thermal pitting at grain boundary vertices