Applications of the RISM equation to diatomic fluids: the liquids nitrogen, oxygen and bromine