Formation of intense focused ion and atomic beams