A multislice approach to magnetic electron lens theory