Generalized and multiple-trait extensions to quantitative-trait locus mapping