Electromagnetic transitions in 11B and 14C