Was the Maratha Empire ended quick or gradual?