On the calculation of coupling coefficients in amplitude equations