On the classification of weighing matrices and self‐orthogonal codes