Selfconsistent semiclassical description of average nuclear properties—a link between microscopic and macroscopic models