A New Technique for the Measurement of the Formation Factors and Resistivity Indices of Porous Media