get_total_thicknesses function

get thicknesses of sections from depth-depth curves