A pencil beam algorithm for helium ion beam therapy.