Text this: Motion compensation with a scanned ion beam: a technical feasibility study