Intercoolers in multistage compressors