Self-accelerating solutions of scalar–tensor gravity