Longitudinal and torsional shock waves in anisotropic elastic cylinders