Hopf bifurcation of a Solow-Swan type model with two delays