Stability of equilibrium of a double-layer system with a deformable interface and a prescribed heat flux on the external boundaries