Thin Film Devices and Methods for Preparing Thin Film Devices