Devices having a multilayer structure