Design criteria and thermodynamic performance analysis for magnetic refrigeration devices