Sparse representations and realization theory