Effect of W doping on bipolar resistive switching behavior of TiN/W:NbOx/Pt device