Impacts of cold ionospheric ions in magnetic reconnection at the Earth's magnetopause and magnetotail