Pyrolysis of demineralized and metal cation loaded lignites