Գրեք սա: Microcanonical thermodynamics in general physical theories