how does coal form in the ground