Leakage current in TiN/HfO2/TiN MIM capacitors and degradation due to electrical stress