Gradient-Based Mixed Planning with Discrete and Continuous Actions