Precision measurement of the X(3872) mass in J/ψπ+π- decays