Matrices of the frequency and similarity of Arabic letters and allographs