Dynamics of oil generation and degradation during retorting of oil shale blocks and powders