Synthesis of some substituted pyrido[1,2‐a]pyrimidin‐4‐ones and 1,8‐naphthyridines