A theory of damage in brittle materials