Determination of superconducting anisotropy from magnetization data on random powders as applied to LuNi 2 B 2 C , YNi 2 B 2 C , and MgB 2