Stabilities and structures of gas phase MgO clusters