Microscopic shell-model description of transitional nuclei