how hamas elections work