Amplitude Equation for a Nonlinear Three Dimensional Convective Flow in a Mushy Layer