Mass and charge distributions of fusion products for 12C + 16O and 16O + 16O