Soft X-ray measurements of the electronic states of various MgIn phases