Growth of buried metal aluminides and gallides and of rare-earth monopnictides in compound semiconductors: a comparison