Robert Kubica says he is still targeting a return to Formula One racing after being named as the reserve and development driver for Williams for the forthcoming 2018 season.