Responses of the pseudogap and d -wave superconductivity to high magnetic fields in the underdoped high- T c superconductor YBa 2 Cu 4 O 8 : An NMR study