A unified approach to loneliness