On Gradient Elasticity and Discrete Peridynamics with Applications to Beams and Plates