An Exploration Algorithm for Stochastic Simulators Driven by Energy Gradients