The effects of non-linear electron-phonon interactions on superconductivity and charge-density-wave correlations