Combining basic and maximum income for social and ecological sustainability