Microscopic aspects of nuclear deformation