Gravar-mail: An algorithm for constrained one-step inversion of spectral CT data