A thermomechanical constitutive theory for elastic composites with distributed damage—II. Application to matrix cracking in laminated composites