Skipping and snake orbits of electrons: Singularities and catastrophes