{Patterning of the switching material by etching of pre-deposited switching material layers, e.g. lithography}