Effect of titanium dioxide intermediate layer on scratch and corrosion resistance of sol–gel-derived HA coating applied on Ti-6Al-4V substrate