Matrix method analysis of quantum Hall effect device connections