Electrosynthesis of yttrium chalcogenides from a non-aqueous bath