how are fossil fuels produced