Fractal fragmentation theory for size effects of quasi-brittle materials in compression