Materials design for resilience in the biointegration of electronics