Gravar-mail: A general-purpose baseline estimation algorithm for spectroscopic data