The photodisintegration of 12C leading to excited states of 11B and 11C