Physics-Informed Reward Machines