The converging shock wave from a spherical or cylindrical piston