Theory of thermo-optic instabilities in dual-core fiber amplifiers