Causal Bandits with General Causal Models and Interventions