Chemical reasoning in LLMs unlocks steerable synthesis planning and reaction mechanism elucidation