Coercivity mechanism in hard magnetic SmCo5/PrCo5 bilayers