FLUKA cross sections for cosmic-ray interactions with the DRAGON2 code