Supermassive black hole binaries in gaseous and stellar circumnuclear discs: orbital dynamics and gas accretion