Temperature dependence of competition between interlayer and interfacial exchange couplings in ferromagnetic/antiferromagnetic/ferromagnetic trilayers