A collar $A$ of mass $m$ is moving with a speed $v$ when it strikes an identical collar $B$ that is at rest. Knowing that the coefficient of restitution between the collars is $e,$ determine the energy lost in the impact as a function of $m, e,$ and $v$.