Dynamic analysis of structures made of heterogeneous members using the equilibrated basis function