Micromachined thick permanent magnet arrays on silicon wafers