Identity in Physics: A Historical, Philosophical, and Formal