Multidimensional networks: foundations of structural analysis