Logano replaces Stewart on Home Depot NASCAR team