Nanoscale hafnium oxide passivation for photovoltaic and electronic devices