Local transverse ion energization in and near the polar cusp