A plasticity model and algorithm for mode-I cracking in concrete