Stochastic optimal control with variable impedance manipulators in presence of uncertainties and delayed feedback