A study of the leakage current in TiN/HfO2/TiN capacitors