Sparse solutions to linear inverse problems with multiple measurement vectors