Spin-coatable HfO2 resist for optical and electron beam lithographies