Transitions to chaos in two-dimensional double-diffusive convection