The Mechanical Analysis of Sediments from Thin-Section Data