High-resolution laser spectroscopy for the study of nuclear sizes and shapes