Observer based dynamic adaptive cooling system for power modules