Some factors governing the production of patulin in apples