Variational principles for shakedown analysis of materials with internal rotation