Measuring fragmentation in rural landscapes: the case of Sardinia, Italy