Poincaré's energetic approach to linear elasticity