Pyrolysis of oil shale in a microretorting unit