Distinguishing spins in supersymmetric and universal extra dimension models at the large hadron collider