Hamas says to vie in elections under unity gov't