After Fidel Castro’s death, Cuba and Venezuela may turn to each other for political survival