Climate drives link between forest biodiversity and productivity