Shell and shape evolution at N = 28 : The 40 Mg ground state