Moderate Environmental Variation Across Generations Promotes the Evolution of Robust Solutions