Structure, lattice dynamics and Fermi surface of the magnetic shape memory system Co–Ni–Ga from first principles calculations