New method for measuring compressibility and poroelasticity coefficients in porous and permeable rocks