Resistance matrices of directed graphs