Modelling strength and ductility of ultrafine grained BCC and FCC alloys using irreversible thermodynamics