Rare earth materials research in European Community R&D programmes