Numerical formulation of a multiphase composite material model for concrete