Direct observation of confined states in metallic single-walled carbon nanotubes