A relaxation result in BV × Lp for integral functionals depending on chemical composition and elastic strain