Electronic Configuration of Elements and Magnetic Properties