Dynamic beam current control for improved dose accuracy in PBS proton therapy