Genetic engineering of apple and pear