ManifoldNet: A Deep Neural Network for Manifold-Valued Data With Applications