Multiwavelength study of M33's giant H ii regions NGC 588 and NGC 592