State formation, legitimacy and society in Medieval Orissa:a comparative study of Sambalpur and Khurda in the sixteenth and seventeenth centuries