Photochemistry of bicyclo[3.3.1]nonanes having two functional groups at 3,7-positions