Acidic groups in coal and coal-derived materials