Linear analysis of frame structures by use of algebraic topology