How did political power and religious ideas affect one another in the transition of a roman republic to roman empire