Ground State Energy of the Magnetic Laplacian on Corner Domains