Ferroelectric properties and switching endurance of Hf0.5Zr0.5O2 films on TiN bottom and TiN or RuO2 top electrodes