The formation of nanoscale clusters-nanofilms/quantum dots predicted using a capillary model of nucleation