Variational principles with generalized distances and applications to behavioral sciences