Enhanced isogeometric analysis of fracturing in solid and porous media