PKDGRAV3: beyond trillion particle cosmological simulations for the next era of galaxy surveys (Computational Astrophysics and Cosmology, 2017)