Self‐Consistent APW–k · p method. I. Theory