Gravar-mail: Image-domain Material Decomposition for Spectral CT using a Generalized Dictionary Learning