RuleReasoner: Reinforced Rule-based Reasoning via Domain-aware Dynamic Sampling