Nova nucleosynthesis and production of the radioisotope 18F