A GENERAL VARIATIONAL PRINCIPLE FOR THERMAL INSULATION SYSTEM DESIGN