Pressure dependence of the metal-semiconductor transition in TaS3