Modeling of hysteresis and magnetization curves for hexagonally ordered electrodeposited nanowires