Electronic and structural transitions in stoichiometric and nearly-stoichiometric lanthanum trihydride and trideuteride. A 139La and 1H nuclear magnetic resonance study.