Preparation of a phenol formaldehyde resin