Nonplanarity of π systems. An ab initio study of norbornene and norbornadiene