A spectroscopic study of the magnetic chemically peculiar star nu Fornacis