Simplicity of tensor products of Kirillov--Reshetikhin modules: nonexceptional affine and G types