Measuring the coefficient of restitution for all six degrees of freedom