On one-dimensional planar and nonplanar shock waves in a relaxing gas