Pretreatment of lignocellulosic feedstocks for cellulose nanofibril production