AB INITIO CALCULATIONS OF THE CURIE TEMPERATURE OF COMPLEX PERMANENT-MAGNET MATERIALS