Effects of climate on reproductive investment in a masting species: assessment of climatic predictors and underlying mechanisms