Multidimensional phase singularities in nanophotonics