SAFE^d: Self-Attestation For Networks of Heterogeneous Embedded Devices