Stabilization of thin liquid films by internal heat generation