Enviar por SMS: Microcanonical thermodynamics in general physical theories