Quark mass matrices in left-right symmetric gauge theories