Aperiodicity and primitive ideals of row-finite k-graphs