what was coal originally used for