Legacy phosphorus and ecosystem memory control future water quality in a eutrophic lake