Whitham modulation theory for the Zakharov–Kuznetsov equation and stability analysis of its periodic traveling wave solutions