The VLT-FLAMES Tarantula Survey XXIV. Stellar properties of the O-type giants and supergiants in 30 Doradus