Sedimentary rock porosity studied by electromagnetic techniques: nuclear magnetic resonance and dielectric permittivity