Investigation of fragmentation dynamics of nitrogen dimers by collisions with highly charged ions