Dielectric properties of (multilevel) switching devices based on ultrathin organic films