Robust Motor Imagery Classification Using Sparse Representations and Grouping Structures