Generalized fermion doubling theorems: Classification of two-dimensional nodal systems in terms of wallpaper groups