The Subsurface Structure of Sunspots and the Origin of Solar Active Regions