Madagascar's new military ruler pledges elections within two years