A Distributed Election Protocol for Unreliable Networks