Effect of patterning on SmCo micromagnets suitable for integration in microsystems