CHEMICAL ABUNDANCES OF METAL-POOR RR LYRAE STARS IN THE MAGELLANIC CLOUDS