who wrote the song words by the bee gees