Singularity theory of Weyl-point creation and annihilation