Identity and individuality in classical and quantum physics