Atomic and electronic structure of quasiperiodic and crystalline Mg-61 at.% Al alloys