A design methodology for radial turbomachinery. Application to turbines and compressors