Optimal reduction of colour charts by integer programming