Direct Coulomb-explosion imaging of coherent nuclear dynamics induced by few-cycle laser pulses in light and heavy hydrogen