A multiwavelength study of Stephan’s quintet