Structure stability and magnetism in graphene impurity complexes with embedded V and Nb atoms