Computer-simulation study of a disordered plane-rotator system in two dimensions with long-range ferromagnetic interactions