Structures and stabilities of the group IIIa dihydrides