Theory of ballooning‐mirror instabilities for anisotropic pressure plasmas in the magnetosphere