Apply the on-policy SARSA temporal-difference update from the current transition and next selected action.