Joint-based description of protein structure: its application to the geometric characterization of membrane proteins