A 3-D discrete-element method for dry granular flows of ellipsoidal particles