Andy Murray won his first title in 15 months after surviving five match points to overcome Tommy Robredo in the final of the Shenzen Open.