Study of metal and semiconductor nano-clusters crystalline stability versus temperature and quantum effects