Optimising sampling design for the genomic analysis of quantitative traits in natural populations