A general relation between the nucleation work and the size of the nucleus in multicomponent nucleation