Mendelian randomization in the multivariate general linear model framework