Pressure dependence of optical transitions in semiconducting single‐walled carbon nanotubes