Gradient damage in simulations of behaviour of RC bars and beams under static and impact loading