A formulation of rigid-body rotational dynamics based on generalized angular momentum variables corresponding to the Euler parameters