Electronic structure and photoassociation scheme of ultracold (MgK+) molecular ions