Tunable optoelectronic and ferroelectric properties in Sc-based III-nitrides