An equation between structure factors for structures containing unequal or overlapped atoms. I. The equation and its properties