Structural manipulation of the frictional properties of linear polymers in single molecular layers