Observation of a common symmetry for the pseudogap and the superconducting order parameter near the surface of underdoped YBa2Cu3O6+x