Asymmetric two-bunch operation of free-electron laser and generation of inverse Compton photons