Polytropic gas cosmology in a 5-dimensional framework