The formation of giant low surface brightness galaxies