The influence of skeletal geometry on the n → π cd of bridged-ring lactones and lactams