Basin bifurcation and chaotic attractor in an elastic oscillator with quadratic and cubic nonlinearities