Anomalous heating of the polar E region by unstable plasma waves - 2. Theory