Stochastic gradient descent for hybrid quantum-classical optimization