Longitudinal and transverse elastic waves in one-dimensional phononic crystals