Advances in neuromorphic hardware exploiting emerging nanoscale devices.