Automatic definition of recurrent local structure motifs in proteins