Analytic gradients for state-averaged multiconfiguration pair-density functional theory.