Change of coercivity mechanism with the soft film thickness in hard-soft trilayers