Berezinskii—Kosterlitz—Thouless Transition in a Two-Dimensional Random-Bond XY Model on a Square Lattice