Influence of Critical Current Distribution on Operation, Quench Detection and Protection of HTS Pancake Coils