Orbital studies of cataclysmic binaries. I - AB Draconis and WW Ceti