Optical isotope shifts and nuclear deformation in dysprosium