Unitary convolutions for learning on graphs and groups