Types and Hecke algebras for principal series representations of split reductive p-adic groups