stages in coal formation over millions of years