Reasoning Effort and Problem Complexity: A Scaling Analysis in LLMs