The Solow growth model with endogenous migration flows and congested public capital