Microwave properties of fine-grain Ni and Mg ferrites