Quantum metrology and thermometry in open systems : thermal equilibrium and beyond