STUDY OF THE ULTRAHIGH-ENERGY PRIMARY-COSMIC-RAY COMPOSITION WITH THE MACRO EXPERIMENT