Evolution of genetic variance in complex environments