Extensive analysis of 152 countries uncovers societal determinants of happiness