Cluster structure of broad resonances near threshold in 12C and 16O