Independent candidate who called Israel ‘terrorist state’ elected Ireland’s president