Retired general Petr Pavel wins election to become Czech president