genes are passed from one generation to the next generation through