A generalization of the maximum entropy principle for curved statistical manifolds