Maximal Ideals in Near-Rings And Semigroups