SmCo micromolding in an aqueous electrolyte