Opening The System To The Environment: New Theories And Tools In Classical And Quantum Settings