Antivortex-core switching as write process in random access memories