APFELgrid: A high performance tool for parton density determinations