NMR study of carrier distribution and superconductivity in multilayered high-Tc cuprates