A micromagnetic study of the oscillations of pinned domain walls in magnetic ribbons