Spectroscopy of highly charged ions for extreme ultraviolet lithography