Static and dynamic analysis of multi-cracked beams with local and non-local elasticity