A fungus (Trametes pubescens) resists cadmium toxicity by rewiring nitrogen metabolism and enhancing energy metabolism