Berry's phase in the presence of a dissipative medium