Text this: Quality of elections. Definition and measures, with an application to the Italian case