Environmental monitoring through biodiversity functional measures