Size-dependent melting behavior of nanowires in lattice dynamical approach