Text this: The Thermodynamics of Defect Formation in Self-Assembled Systems