Quasinormal g modes of neutron stars with quarks