fixed combine_stereoisomers to handle connected double bonds