Stresses and strains in the first law for Kaluza-Klein black holes