Square neodymium magnets