Intermediate dimensions of Bedford-McMullen carpets with applications to Lipschitz equivalence