Mechanically based nonlocal Euler-Bernoulli beam model