Elastic waves in periodically layered infinite and semi-infinite anisotropic media