Agronomy towards the Green Economy. Optimization of metal phytoextraction