Genetic and Environmental Factors Influencing the Genomic Prediction of Complex Traits