A nonlinear time transformation method to compute all the coefficients for the homoclinic bifurcation in the quadratic Takens–Bogdanov normal form