Controlling the exciton energy of a nanowire quantum dot by strain fields