Gamut and color control for multiprimary displays: theory and applications