A Generalized Natural Actor-Critic Algorithm