Collision mechanics and the structure of planetary ring edges