Magnetic patterning: local manipulation of the intergranular exchange coupling via grain boundary engineering