A stable numerical implementation of integral viscoelastic models in the OpenFOAM®computational library