Mechanisms of magnetization reversal in stadium-shaped particles