Fundamentals and speculation in commodity markets