Planar AdS black holes in Lovelock gravity with a nonminimal scalar field