Intermediate degrees of synergistic pleiotropy drive adaptive evolution in ecological time