Preparation of 1-substituted and 1,4-disubstituted derivatives of 2,6-naphthyridine