Theory and computation of higher gradient elasticity theories based on action principles