Structure and property changes of single-walled carbon nanotubes under pressure