An addition theorem for n-fundamental dimension in metric compacta