Orbifold compactification and solutions of M-theory from Milne spaces