Encapsulation of electrical and electronic devices and components, where high heat dissipation and low thermal expansion are needed