1‐Methyl‐3‐piperidone and 1‐methyl‐3‐pyrrolidone derivatives from a dieckmann reaction