Impact of the Rastall parameter on perfect fluid spheres