Magnetic susceptibilities of small particles of magnesium and beryllium