Inverting quantum decoherence by classical feedback from the environment