Creating nitrogen–vacancy ensembles in diamond for coupling with flux qubit