Thermodynamics of asphaltene structure and aggregation