Analysis of protein sequences and their secondary structures based on transition matrices