Post common envelope binaries from SDSS XI. The white dwarf mass distributions of CVs and pre-CVs