Solid-Liquid Phase Transitions of FCC-Al and HCP-Mg Nanoparticles