Self-similar expansion of white dwarfs