Exact solutions of the Bianchi types V and IX via time-dependent quasi-Maxwell equations