Switching between Bloch- and Néel-type magnetic skyrmions