Photoionization of dimethyl ether and diethyl ether