Variations of a class of Monge–Ampère-type functionals and their applications