Survival of trees in a metal-contaminated environment