Initialization and logic gate operations of nuclear spin qubits using a submicron scale resistively-detected NMR device