A minimal coupling method for dissipative quantum systems