Impacts and legacies of extreme precipitation on temperate forests during critical ecological windows