Lattice dynamic stability and electronic structures of ternary hydrides La1−xYxH3via first-principles cluster expansion