Phenol-aldehyde or phenol-ketone resins