Electron transport through a quantum dot in the presence of electron-photon and electron-phonon coupling