A derivation of linear elastic energies from pair-interaction atomistic systems