Electronic structure, magnetism and growth of ultrathin films of transition metals