Introducing sparsity into selection index methodology with applications to high-throughput phenotyping and genomic prediction