Chemical abundances in the globular clusters NGC6229 and NGC6779