Artificial magnetism for ultracold atoms