Preparation of chelates of aldehydes or ketones