Magnetism from the Molecular to the Nanoscale