Stoichiometric and metabolomic shifts of organisms under environmental changes