QED 3 theory of underdoped high-temperature superconductors