Golf courses could be turned into something much more useful and eco-friendly – and some places are doing just that