A nonlocal model with tension and compression damage mechanisms