Thickness-dependent coercivity mechanism and hysteresis loops in hard/soft magnets