On the Auslander-Reiten conjecture for algebras