Size-dependent melting of nanocrystals: a self-consistent statistical approach