Microscopic description of yrast states in spherical nuclei