Nonlocal elasticity: an approach based on fractional calculus