Demonstration of Fold and Cusp Catastrophes in an Atomic Cloud Reflected from an Optical Barrier in the Presence of Gravity