Preparation of isotopically enriched targets and of thin metal foils with high melting temperature using an electron gun