An Actor-Critic Contextual Bandit Algorithm for Personalized Interventions using Mobile Devices