Characterization and cadmium detoxification dynamics of endophytic bacteria isolated from rice plants