BBC News looks at the key details of the comprehensive nuclear deal agreed by Iran and the P5+1 group of world powers.