Finite-temperature stability of hydrocarbons: Fullerenes vs flakes.