Rescattering photoelectron spectroscopy of heterodiatomic molecules with an analytical returning photoelectron wave packet