Modelling for size-dependent and dimension-dependent melting of nanocrystals