How did mendel prove the law of segregation.