Molecular beam diagnostics with internal state selection: Velocity distribution and dimer formation in a supersonic Na/Na2 beam