Electronic structure of underdoped cuprates