Electronic, dynamical, and dielectric properties of lanthanum oxysulfide