Order of the phase transition of a twodimensional rotor system