Smoothness properties of principal angles between subspaces with applications to angular values of dynamical systems