From Laws to Motivation: Guiding Exploration through Law-Based Reasoning and Rewards