On variational principles of relativistic theories involving torsion