Variation of bifurcations along a homotopy from Neumann to Dirichlet problems