Text this: Optical catastrophes of the swallowtail and butterfly beams