Spatial integration of strains using finite elements