A generalized continuum formulation for composite microcracked materials and wave propagation in a bar