Ac complex impedance, dc resistivity, 7Li and 23Na NMR studies of the layered Li(Na)xMo2O4 system