Relic abundance of dark matter with coannihilation in non-standard cosmological scenarios