Terahertz Photoconductivity in Optimally and Underdoped YBa2Cu3O7-δ