how was coal initally formed