Characterization of the mechanical and structural microenvironment of soft tissues with application to cervix and preterm birth