Moduli spaces of flat bundles over nonorientable surfaces